package com.ghck.server.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.FactoryBean;

public class Test implements FactoryBean<Object>{//InitializingBean
	
	private final static Logger LOGGER = LoggerFactory.getLogger(Test.class);
	
	private String name;

	private Class<?> serviceInterface;
	
	public void setServiceInterface(Class<?> serviceInterface) {
		if (serviceInterface != null && !serviceInterface.isInterface()) {
			throw new IllegalArgumentException("'serviceInterface' must be an interface");
		}
		this.serviceInterface = serviceInterface;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
/**
	@Override
	public void afterPropertiesSet() throws Exception {
		LOGGER.info(Thread.currentThread().getName() + "--"+this.getClass() + "22222222222222222222222222");
	}
	**/
	@Override
	public Object getObject() throws Exception {
		return null;
	}

	@Override
	public Class<?> getObjectType() {
		return serviceInterface;
	}

	@Override
	public boolean isSingleton() {
		return false;
	}


	
	

	


}
